<%= form_for(@comment) do |f| %>
  <% if @comment.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@comment.errors.count, "error") %> prohibited this comment from being saved:</h2>

      <ul>
      <% @comment.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
<%= f.hidden_field :user_id, :value => current_user.id %>
<%= f.hidden_field :micropost_id, :value => params[:id] %>
  <div class="field">
    <%= f.label :content %>
    <%= f.text_area :content %>
  </div>
<!--
  <div class="field">
    <%#= f.label :user_id %>
    <%#= f.text_field :user_id %>
  </div>

  <div class="field">
    <%#= f.label :micropost_id %>
    <%#= f.text_field :micropost_id %>
  </div>
-->
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
